<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<link rel="stylesheet" href="${ctx }/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="${ctx }/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="${ctx }/kindeditor/lang/zh_CN.js"></script>

<script>
	var editor;
	KindEditor.ready(function(K) {
		editor = K.create('textarea[id="content"]', {
			cssPath : '${ctx}/kindeditor/plugins/code/prettify.css',
				uploadJson :  '${ctx}/kindeditor/jsp/upload_json.jsp',  
				fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['form'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['form'].submit();
					});
				}
			});
			prettyPrint();
		});
var editor1;
	KindEditor.ready(function(K) {
		editor1 = K.create('textarea[id="SpecialNote"]', {
			cssPath : '${ctx}/kindeditor/plugins/code/prettify.css',
				uploadJson :  '${ctx}/kindeditor/jsp/upload_json.jsp',  
				fileManagerJson : '${ctx}/kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
					});
				}
			});
			prettyPrint();
		});
	function check(){
		/* var SpecialNote = document.getElementById("SpecialNote");
		var title = document.getElementById("title");
		var time = document.getElementById("time");
		//alert(article.value);
		if(SpecialNote.value == ""){
			alert("特别提示不能为空！");
			return false;
		} 
		if(editor.isEmpty()){
			alert("录取情况公告不能为空！");
			return false;
		} */
		return true;
	} 

</script>
</head>

<body onload="year()">
<s:if test="hasActionMessages()">      
         <s:iterator value="actionMessages">      
             <script language="JavaScript">      
                 alert("<s:property escape="false"/>");     
             </script>    
             </s:iterator>
             </s:if>
	<form action="${ctx }/admin/college-notice-admin!save.action" method="post" name="form" onsubmit="return check()">
		
	<input type="hidden" name="entity.type" value="${value}"/>
	<s:if test="entity!=null" >
		<input type="hidden" name="value" value="${value}"/>
	</s:if>
	<table style="width:100%;">
		<tr>
			<td>特别提示：</td>
		</tr>
		<tr>
			<td>
				<textarea style="width:100%;height:400px" name="entity.note" id="SpecialNote">${entity.note }</textarea>
			</td>
		</tr>
		<tr>
			<td>录取情况公告：</td>
		</tr>
		<tr>
			<td>
				<textarea style="width:100%;height:400px" name="entity.content" id="content">${entity.content }</textarea>
			</td>
		</tr>
		<tr>
			<td align="right"><input style="width:100px;" type="submit" value="提交" /></td>
		</tr>
	</table>
	</form>

</body>
</html>
